package com.ruoyi.collect.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteCollectCommonService", value = ServiceNameConstants.COLLECT_SERVICE)
public interface RemoteCollectCommonService {

    /**
     * 生成白底图
     */
    @GetMapping("/collect/product/generateWhite/{imgUrl}")
    R<Object> generateWhite(@PathVariable("imgUrl") String imgUrl);

    /**
     * 生成营销图
     */
    @GetMapping("/collect/product/generateMarketing/{imgUrl}")
    R<Object> generateMarketing(@PathVariable("imgUrl") String imgUrl);


}
